package com.simulate;

import android.content.Context;
import android.provider.Settings;

/**
 * 工具类
 *
 * @author WangQiuWei
 * @email jackiewqw@gmail.com
 * @since 2015-09-10
 */
public class Utils {

    /**
     * returns true if mock location enabled, false if not enabled.
     * @param context
     * @return
     */
    public static boolean isMockSettingsON(Context context) {
        return ! Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ALLOW_MOCK_LOCATION).equals("0");
    }
}
